﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses.Forest._6_10;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._6_10;
using The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._6_10.Resources;
using The_Chronicles_of_Asku.Characters;

namespace The_Chronicles_of_Asku.Areas.End_Game_Floors.Forest._6_10
{
    class AreaSix
    {
        Hero myHero = new Hero();
        BanditKing BanditKing = new BanditKing();
        BanditKingBattle battle = new BanditKingBattle();

        public void theFloor(Hero myHero, Mob mob)
        {
            Console.WriteLine(AreaSixText.Entrance, myHero.Identifier);
            ClearScreen();

            battle.Fight(myHero, BanditKing);
            myHero.ResetStats(myHero);
            BanditKing.ResetStats(BanditKing);
            ClearScreen();

            if (myHero.isAlive == true)
            {
                Console.WriteLine(AreaSixText.Exit);
                ClearScreen();
            }

            else if (myHero.isAlive == false)
            {
                Console.WriteLine(AreaSixText.Dead);
                myHero.isAlive = true;
                ClearScreen();
            }
        }

        private void ClearScreen()
        {
            Console.ReadKey();
            Console.Clear();
        }
    }
}
